﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork.Repository;
using HMIS.FrameWork.DomainBase;
using HMIS.Infrastructure.Core.Authority;

namespace HMIS.Infrastructure.Core.Repositories
{
    public interface IRoleRepository : IRepository<Role>
    {
        IList<Role> GetPlistAll(int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);
        bool IsFieldExist(string fieldName, string fieldValue, string id);
        IList<Role> QueryPlist(string query, int start, int limit, out long total);
        Role GetByIdWithMenuAndPermissions(string id);

		IList<Role> GetPlist(int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);
    }
}
